package rabc.veiw;

import java.util.Scanner;

public class  MainVeiw {
    public  static Scanner input;
    static {
        input =new Scanner(System.in);
    }
    public static  void show() {
        String menuChoice;
        do {
            printMenu();
            menuChoice = input.nextLine();
            switch (menuChoice) {
                case "0":
                    System.out.println("退出");
                    break;
                case "1":
                    DeptVeiw.show();
                    break;
                case "2":
                    System.out.println("");
                    break;
                case "3":
                    System.out.println("");
                    break;
                default:
                    System.out.println();
            }
        }while(!"0".equals(menuChoice));
        input.close();
    }
    public static void  printMenu(){

        String Menu= """
                -------------------
                    RABC系统
                -------------------
                | 0 退出系统        |
                | 1 部门管理        |
                | 2 角色管理        |
                | 3 用户管理        |
                -------------------
                请输入选项：
                """;
        System.out.println(Menu);
    }
}
